package com.hyy.api.domain.customer.vo;

import java.math.BigDecimal;

import com.hyy.api.domain.customer.CstmCustomer;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hyy.common.excel.annotation.ExcelDictFormat;
import com.hyy.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 下游客户视图对象 cstm_customer
 *
 * @author ruoyi
 * @date 2025-05-16
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CstmCustomer.class)
public class CstmCustomerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    @ExcelProperty(value = "客户ID")
    private Long id;

    /**
     * 客户名称
     */
    @ExcelProperty(value = "客户名称")
    private String name;

    /**
     * 客户code
     */
    @ExcelProperty(value = "客户code")
    private String code;

    /**
     * 客户密码
     */
    @ExcelProperty(value = "客户密码")
    private String pwd;

    /**
     * ip 白名单
     * 多个ip用逗号分隔
     */
    @ExcelProperty(value = "ip白名单")
    private String ips;


    /**
     * 状态(1:启用,0:停用)
     */
    @ExcelProperty(value = "状态(1:启用,0:停用)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "cstm_customer_status")
    private Integer status;

    /**
     * 接入方式（cmpp、http）
     */
    @ExcelProperty(value = "接入方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "c=mpp、http")
    private String method;

    /**
     * 公司账号id
     */
    @ExcelProperty(value = "公司账号id")
    private Long corporateId;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal price;

    /**
     * cmpp、http参数
     */
    private String methodParams;
}
